//
//  UpdateVersion.h
//  LongriseHttpManageIOS
//
//  Created by 程三 on 17/5/16.
//  Copyright © 2017年 程三. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

typedef void(^UpdateAppversionBlock)(BOOL isUpdate,BOOL IsUpgrade, NSString *remarks);

@interface UpdateVersion : NSObject<UIAlertViewDelegate>
{
    NSString *upgrade;//1表示强制升级
    UIAlertView *alert;
    NSString *downURL;//下载链接;
}
@property(nonatomic,copy)NSString *baseURL;//请求基础地址
@property(nonatomic,assign)float currentVersion;//当前版本
@property(nonatomic,copy)NSString *methodName;//接口名称，默认值为：lbcp_getAppVersion
@property(nonatomic,copy)NSString *parameterName;//检查版本接口参数名称，默认值为：appname
@property(nonatomic,copy)NSString *appName;//app的名称
@property(nonatomic,assign)int mark;// 标识符,为0是为手动检测版本，其他为自动检测
@property (nonatomic,copy) UpdateAppversionBlock updateBlock;
-(void)checkVersion;

@end
